import type { GeneratedEtsLibFile } from "../../types/generated";

export const FILE: GeneratedEtsLibFile = {
  path: 'ets/api/@ohos.rpc.d.ts',
  content: "/*\n * Copyright (C) 2021-2023 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @file\n * @kit IPCKit\n */\nimport type { AsyncCallback } from './@ohos.base';\n/**\n * This module provides inter process communication capability.\n *\n * @namespace rpc\n * @syscap SystemCapability.Communication.IPC.Core\n * @since 7\n */\ndeclare namespace rpc {\n    /**\n     * The error code of rpc.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Communication.IPC.Core\n     * @since 9\n     */\n    enum ErrorCode {\n        /**\n         * Parameter error.\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        CHECK_PARAM_ERROR = 401,\n        /**\n         * Failed to call mmap.\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        OS_MMAP_ERROR = 1900001,\n        /**\n         * Failed to call ioctl.\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        OS_IOCTL_ERROR = 1900002,\n        /**\n         * Failed to write data to the shared memory.\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        WRITE_TO_ASHMEM_ERROR = 1900003,\n        /**\n         * Failed to read data from the shared memory.\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        READ_FROM_ASHMEM_ERROR = 1900004,\n        /**\n         * Operation allowed only for the proxy object.\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        ONLY_PROXY_OBJECT_PERMITTED_ERROR = 1900005,\n        /**\n         * Operation allowed only for the remote object.\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        ONLY_REMOTE_OBJECT_PERMITTED_ERROR = 1900006,\n        /**\n         * Communication failed.\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        COMMUNICATION_ERROR = 1900007,\n        /**\n         * The proxy or remote object is invalid.\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        PROXY_OR_REMOTE_OBJECT_INVALID_ERROR = 1900008,\n        /**\n         * Failed to write data to the message sequence.\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        WRITE_DATA_TO_MESSAGE_SEQUENCE_ERROR = 1900009,\n        /**\n         * Failed to read data from the message sequence.\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        READ_DATA_FROM_MESSAGE_SEQUENCE_ERROR = 1900010,\n        /**\n         * Memory allocation failed.\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        PARCEL_MEMORY_ALLOC_ERROR = 1900011,\n        /**\n         * Call js method failed\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        CALL_JS_METHOD_ERROR = 1900012,\n        /**\n         * Os dup function failed\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        OS_DUP_ERROR = 1900013\n    }\n    /**\n     * Enumerates the types of the TypedArray object converted from an ArrayBuffer object.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Communication.IPC.Core\n     * @since 12\n     */\n    enum TypeCode {\n        /**\n         * The TypedArray type is Int8Array.\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 12\n         */\n        INT8_ARRAY = 0,\n        /**\n         * The TypedArray type is Uint8Array.\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 12\n         */\n        UINT8_ARRAY = 1,\n        /**\n         * The TypedArray type is Int16Array.\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 12\n         */\n        INT16_ARRAY = 2,\n        /**\n         * The TypedArray type is Uint16Array.\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 12\n         */\n        UINT16_ARRAY = 3,\n        /**\n         * The TypedArray type is Int32Array.\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 12\n         */\n        INT32_ARRAY = 4,\n        /**\n         * The TypedArray type is Uint32Array.\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 12\n         */\n        UINT32_ARRAY = 5,\n        /**\n         * The TypedArray type is Float32Array.\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 12\n         */\n        FLOAT32_ARRAY = 6,\n        /**\n         * The TypedArray type is Float64Array.\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 12\n         */\n        FLOAT64_ARRAY = 7,\n        /**\n         * The TypedArray type is BigInt64Array.\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 12\n         */\n        BIGINT64_ARRAY = 8,\n        /**\n         * The TypedArray type is BigUint64Array.\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 12\n         */\n        BIGUINT64_ARRAY = 9\n    }\n    /**\n     * A data object used for remote procedure call (RPC).\n     * <p>\n     * During RPC, the sender can use the write methods provided by {@link MessageParcel} to\n     * write the to-be-sent data into a {@link MessageParcel} object in a specific format, and the receiver can use the\n     * read methods provided by {@link MessageParcel} to read data of the specific format from the\n     * {@link MessageParcel} object.\n     * <p>\n     * <p>\n     * The default capacity of a {@link MessageParcel} instance is 200KB. If you want more or less,\n     * use {@link #setCapacity(int)} to change it.\n     * </p>\n     * <b>Note</b>: Only data of the following data types can be written into or read from a {@link MessageParcel}: byte,\n     * byteArray, short, shortArray, int, intArray, long, longArray, float, floatArray, double, doubleArray, boolean,\n     * booleanArray, char, charArray, String, StringArray, {@link IRemoteObject}, IRemoteObjectArray,\n     * {@link Sequenceable}, and SequenceableArray.\n     *\n     * @syscap SystemCapability.Communication.IPC.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.rpc.MessageSequence\n     */\n    class MessageParcel {\n        /**\n         * Creates an empty {@link MessageParcel} object.\n         *\n         * @returns { MessageParcel } Return the object created.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        static create(): MessageParcel;\n        /**\n         * Reclaim the {@link MessageParcel} object.\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        reclaim(): void;\n        /**\n         * Serialize a remote object and writes it to the {@link MessageParcel} object.\n         *\n         * @param { IRemoteObject } object - Remote object to serialize.\n         * @returns { boolean } Return {@code true} if it is successful; return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        writeRemoteObject(object: IRemoteObject): boolean;\n        /**\n         * Reads a remote object from {@link MessageParcel} object.\n         *\n         * @returns { IRemoteObject } Return the remote object.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        readRemoteObject(): IRemoteObject;\n        /**\n         * Writes an interface token into the {@link MessageParcel} object.\n         *\n         * @param { string } token - Interface descriptor to write.\n         * @returns { boolean } Return {@code true} if the interface token has been written into the {@link MessageParcel};\n         *                      return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        writeInterfaceToken(token: string): boolean;\n        /**\n         * Reads an interface token from the {@link MessageParcel} object.\n         *\n         * @returns { string } Return a string value.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        readInterfaceToken(): string;\n        /**\n         * Obtains the size of data (in bytes) contained in the {@link MessageParcel} object.\n         *\n         * @returns { number } Return the size of data contained in the {@link MessageParcel} object.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        getSize(): number;\n        /**\n         * Obtains the storage capacity (in bytes) of the {@link MessageParcel} object.\n         *\n         * @returns { number } Return the storage capacity of the {@link MessageParcel} object.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        getCapacity(): number;\n        /**\n         * Sets the size of data (in bytes) contained in the {@link MessageParcel} object.\n         * <p>{@code false} is returned if the data size set in this method is greater\n         * than the storage capacity of the {@link MessageParcel}.\n         *\n         * @param { number } size - Indicates the data size of the {@link MessageParcel} object.\n         * @returns { boolean } Return {@code true} if the setting is successful; return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        setSize(size: number): boolean;\n        /**\n         * Sets the storage capacity (in bytes) of the {@link MessageParcel} object.\n         * <p>{@code false} is returned if the capacity set in this method is less than\n         * the size of data contained in the {@link MessageParcel}.\n         *\n         * @param { number } size - Indicates the storage capacity of the {@link MessageParcel} object.\n         * @returns { boolean } Return {@code true} if the setting is successful; return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        setCapacity(size: number): boolean;\n        /**\n         * Obtains the writable data space (in bytes) in the {@link MessageParcel} object.\n         * <p>Writable data space = Storage capacity of the {@link MessageParcel} – Size of data contained\n         * in the {@link MessageParcel}.\n         *\n         * @returns { number } Return the writable data space of the {@link MessageParcel} object.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        getWritableBytes(): number;\n        /**\n         * Obtains the readable data space (in bytes) in the {@link MessageParcel} object.\n         * <p>Readable data space = Size of data contained in the {@link MessageParcel} – Size of data that has been read.\n         *\n         * @returns { number } Return the readable data space of the {@link MessageParcel} object.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        getReadableBytes(): number;\n        /**\n         * Obtains the current read position in the {@link MessageParcel} object.\n         *\n         * @returns { number } Return the current read position in the {@link MessageParcel} object.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        getReadPosition(): number;\n        /**\n         * Obtains the current write position in the {@link MessageParcel} object.\n         *\n         * @returns { number } Return the current write position in the {@link MessageParcel} object.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        getWritePosition(): number;\n        /**\n         * Changes the current read position in the {@link MessageParcel} object.\n         * <p>Generally, you are advised not to change the current read position. If you must\n         * change it, change it to an accurate position. Otherwise, the read data may be incorrect.\n         *\n         * @param { number } pos - Indicates the target position to start data reading.\n         * @returns { boolean } Return {@code true} if the read position is changed; return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        rewindRead(pos: number): boolean;\n        /**\n         * Changes the current write position in the {@link MessageParcel} object.\n         * <p>Generally, you are advised not to change the current write position. If you must\n         * change it, change it to an accurate position. Otherwise, the data to be read may be incorrect.\n         *\n         * @param { number } pos - Indicates the target position to start data writing.\n         * @returns { boolean } Return {@code true} if the write position is changed; return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        rewindWrite(pos: number): boolean;\n        /**\n         * Writes information to this MessageParcel object indicating that no exception occurred.\n         * <p>After handling requests, you should call this method before writing any data to reply {@link MessageParcel}.\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        writeNoException(): void;\n        /**\n         * Reads the exception information from this MessageParcel object.\n         * <p>If exception was thrown in server side, it will be thrown here.\n         * This method should be called before reading any data from reply {@link MessageParcel}\n         * if {@link writeNoException} was invoked in server side.\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        readException(): void;\n        /**\n         * Writes a byte value into the {@link MessageParcel} object.\n         *\n         * @param { number } val - Indicates the byte value to write.\n         * @returns { boolean } Return {@code true} if the value has been written into the {@link MessageParcel};\n         *                      return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        writeByte(val: number): boolean;\n        /**\n         * Writes a short integer value into the {@link MessageParcel} object.\n         *\n         * @param { number } val - Indicates the short integer value to write.\n         * @returns { boolean } Return {@code true} if the value has been written into the {@link MessageParcel};\n         *                      return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        writeShort(val: number): boolean;\n        /**\n         * Writes an integer value into the {@link MessageParcel} object.\n         *\n         * @param { number } val - Indicates the integer value to write.\n         * @returns { boolean } Return {@code true} if the value has been written into the {@link MessageParcel};\n         *                      return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        writeInt(val: number): boolean;\n        /**\n         * Writes a long integer value into the {@link MessageParcel} object.\n         *\n         * @param { number } val - Indicates the long integer value to write.\n         * @returns { boolean } Return {@code true} if the value has been written into the {@link MessageParcel};\n         *                      return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        writeLong(val: number): boolean;\n        /**\n         * Writes a floating point value into the {@link MessageParcel} object.\n         *\n         * @param { number } val - Indicates the floating point value to write.\n         * @returns { boolean } Return {@code true} if the value has been written into the {@link MessageParcel};\n         *                      return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        writeFloat(val: number): boolean;\n        /**\n         * Writes a double-precision floating point value into the {@link MessageParcel} object.\n         *\n         * @param { number } val - Indicates the double-precision floating point value to write.\n         * @returns { boolean } Return {@code true} if the value has been written into the {@link MessageParcel};\n         *                      return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        writeDouble(val: number): boolean;\n        /**\n         * Writes a boolean value into the {@link MessageParcel} object.\n         *\n         * @param { boolean } val - Indicates the boolean value to write.\n         * @returns { boolean } Return {@code true} if the value has been written into the {@link MessageParcel};\n         *                      return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        writeBoolean(val: boolean): boolean;\n        /**\n         * Writes a single character value into the {@link MessageParcel} object.\n         *\n         * @param { number } val - Indicates the single character value to write.\n         * @returns { boolean } Return {@code true} if the value has been written into the {@link MessageParcel};\n         *                      return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        writeChar(val: number): boolean;\n        /**\n         * Writes a string value into the {@link MessageParcel} object.\n         *\n         * @param { string } val - Indicates the string value to write.\n         * @returns { boolean } Return {@code true} if the value has been written into the {@link MessageParcel};\n         *                      return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        writeString(val: string): boolean;\n        /**\n         * Writes a {@link Sequenceable} object into the {@link MessageParcel} object.\n         *\n         * @param { Sequenceable } val - Indicates the {@link Sequenceable} object to write.\n         * @returns { boolean } Return {@code true} if the {@link Sequenceable} object has been written into\n         *                      the {@link MessageParcel}; return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        writeSequenceable(val: Sequenceable): boolean;\n        /**\n         * Writes a byte array into the {@link MessageParcel} object.\n         *\n         * @param { number[] } byteArray - Indicates the byte array to write.\n         * @returns { boolean } Return {@code true} if the array has been written into the {@link MessageParcel};\n         *                      return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        writeByteArray(byteArray: number[]): boolean;\n        /**\n         * Writes a short integer array into the {@link MessageParcel} object.\n         * Ensure that the data type and size comply with the interface definition.\n         * Otherwise,data may be truncated.\n         *\n         * @param { number[] } shortArray - Indicates the short integer array to write.\n         * @returns { boolean } Return {@code true} if the array has been written into the {@link MessageParcel};\n         *                      return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        writeShortArray(shortArray: number[]): boolean;\n        /**\n         * Writes an integer array into the {@link MessageParcel} object.\n         * Ensure that the data type and size comply with the interface definition.\n         * Otherwise,data may be truncated.\n         *\n         * @param { number[] } intArray - Indicates the integer array to write.\n         * @returns { boolean } Return {@code true} if the array has been written into the {@link MessageParcel};\n         *                      return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        writeIntArray(intArray: number[]): boolean;\n        /**\n         * Writes a long integer array into the {@link MessageParcel} object.\n         * Ensure that the data type and size comply with the interface definition.\n         * Otherwise,data may be truncated.\n         *\n         * @param { number[] } longArray - Indicates the long integer array to write.\n         * @returns { boolean } Return {@code true} if the array has been written into the {@link MessageParcel};\n         *                      return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        writeLongArray(longArray: number[]): boolean;\n        /**\n         * Writes a floating point array into the {@link MessageParcel} object.\n         * Ensure that the data type and size comply with the interface definition.\n         * Otherwise,data may be truncated.\n         *\n         * @param { number[] } floatArray - Indicates the floating point array to write.\n         * @returns { boolean } Return {@code true} if the array has been written into the {@link MessageParcel};\n         *                      return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        writeFloatArray(floatArray: number[]): boolean;\n        /**\n         * Writes a double-precision floating point array into the {@link MessageParcel} object.\n         * Ensure that the data type and size comply with the interface definition.\n         * Otherwise,data may be truncated.\n         *\n         * @param { number[] } doubleArray - Indicates the double-precision floating point array to write.\n         * @returns { boolean } Return {@code true} if the array has been written into the {@link MessageParcel};\n         *                      return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        writeDoubleArray(doubleArray: number[]): boolean;\n        /**\n         * Writes a boolean array into the {@link MessageParcel} object.\n         * Ensure that the data type and size comply with the interface definition.\n         * Otherwise,data may be truncated.\n         *\n         * @param { boolean[] } booleanArray - Indicates the boolean array to write.\n         * @returns { boolean } Return {@code true} if the array has been written into the {@link MessageParcel};\n         *                      return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        writeBooleanArray(booleanArray: boolean[]): boolean;\n        /**\n         * Writes a single character array into the {@link MessageParcel} object.\n         * Ensure that the data type and size comply with the interface definition.\n         * Otherwise,data may be truncated.\n         *\n         * @param { number[] } charArray - Indicates the single character array to write.\n         * @returns { boolean } Return {@code true} if the array has been written into the {@link MessageParcel};\n         *                      return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        writeCharArray(charArray: number[]): boolean;\n        /**\n         * Writes a string array into the {@link MessageParcel} object.\n         * Ensure that the data type and size comply with the interface definition.\n         * Otherwise,data may be truncated.\n         *\n         * @param { string[] } stringArray - Indicates the string array to write.\n         * @returns { boolean } Return {@code true} if the array has been written into the {@link MessageParcel};\n         *                      return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        writeStringArray(stringArray: string[]): boolean;\n        /**\n         * Writes a {@link Sequenceable} object array into the {@link MessageParcel} object.\n         *\n         * @param { Sequenceable[] } sequenceableArray - Indicates the {@link Sequenceable} object array to write.\n         * @returns { boolean } Return {@code true} if the array has been written into the {@link MessageParcel};\n         *                      return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        writeSequenceableArray(sequenceableArray: Sequenceable[]): boolean;\n        /**\n         * Writes an array of {@link IRemoteObject} objects to this {@link MessageParcel} object.\n         *\n         * @param { IRemoteObject[] } objectArray - Array of {@link IRemoteObject} objects to write.\n         * @returns { boolean } Return {@code true} if the {@link IRemoteObject} array is successfully written\n         *                      to the {@link MessageParcel};\n         *                      return {@code false} if the {@link IRemoteObject} array is null or fails to be written\n         *                      to the {@link MessageParcel}.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        writeRemoteObjectArray(objectArray: IRemoteObject[]): boolean;\n        /**\n         * Reads a byte value from the {@link MessageParcel} object.\n         *\n         * @returns { number } Return a byte value.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        readByte(): number;\n        /**\n         * Reads a short integer value from the {@link MessageParcel} object.\n         *\n         * @returns { number } Return a short integer value.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        readShort(): number;\n        /**\n         * Reads an integer value from the {@link MessageParcel} object.\n         *\n         * @returns { number } Return an integer value.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        readInt(): number;\n        /**\n         * Reads a long integer value from the {@link MessageParcel} object.\n         *\n         * @returns { number } Return a long integer value.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        readLong(): number;\n        /**\n         * Reads a floating point value from the {@link MessageParcel} object.\n         *\n         * @returns { number } Return a floating point value.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        readFloat(): number;\n        /**\n         * Reads a double-precision floating point value from the {@link MessageParcel} object.\n         *\n         * @returns { number } Return a double-precision floating point value.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        readDouble(): number;\n        /**\n         * Reads a boolean value from the {@link MessageParcel} object.\n         *\n         * @returns { boolean } Return a boolean value.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        readBoolean(): boolean;\n        /**\n         * Reads a single character value from the {@link MessageParcel} object.\n         *\n         * @returns { number } Return a single character value.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        readChar(): number;\n        /**\n         * Reads a string value from the {@link MessageParcel} object.\n         *\n         * @returns { string } Return a string value.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        readString(): string;\n        /**\n         * Reads a {@link Sequenceable} object from the {@link MessageParcel} instance.\n         *\n         * @param { Sequenceable } dataIn - Indicates the {@link Sequenceable} object that needs to perform\n         *                         the {@code unmarshalling} operation using the {@link MessageParcel}.\n         * @returns { boolean } Return {@code true} if the unmarshalling is successful; return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        readSequenceable(dataIn: Sequenceable): boolean;\n        /**\n         * Writes a byte array into the {@link MessageParcel} object.\n         *\n         * @param { number[] } dataIn - Indicates the byte array read from MessageParcel.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        readByteArray(dataIn: number[]): void;\n        /**\n         * Reads a byte array from the {@link MessageParcel} object.\n         *\n         * @returns { number[] } Return a byte array.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        readByteArray(): number[];\n        /**\n         * Reads a short integer array from the {@link MessageParcel} object.\n         *\n         * @param { number[] } dataIn - Indicates the short integer array read from MessageParcel.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        readShortArray(dataIn: number[]): void;\n        /**\n         * Reads a short integer array from the {@link MessageParcel} object.\n         *\n         * @returns { number[] } Return a short integer array.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        readShortArray(): number[];\n        /**\n         * Reads an integer array from the {@link MessageParcel} object.\n         *\n         * @param { number[] } dataIn - Indicates the integer array to read.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        readIntArray(dataIn: number[]): void;\n        /**\n         * Reads an integer array from the {@link MessageParcel} object.\n         *\n         * @returns { number[] } Return an integer array.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        readIntArray(): number[];\n        /**\n         * Reads a long integer array from the {@link MessageParcel} object.\n         *\n         * @param { number[] } dataIn - Indicates the long integer array to read.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        readLongArray(dataIn: number[]): void;\n        /**\n         * Reads a long integer array from the {@link MessageParcel} object.\n         *\n         * @returns { number[] } Return a long integer array.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        readLongArray(): number[];\n        /**\n         * Reads a floating point array from the {@link MessageParcel} object.\n         *\n         * @param { number[] } dataIn - Indicates the floating point array to read.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        readFloatArray(dataIn: number[]): void;\n        /**\n         * Reads a floating point array from the {@link MessageParcel} object.\n         *\n         * @returns { number[] } Return a floating point array.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        readFloatArray(): number[];\n        /**\n         * Reads a double-precision floating point array from the {@link MessageParcel} object.\n         *\n         * @param { number[] } dataIn - Indicates the double-precision floating point array to read.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        readDoubleArray(dataIn: number[]): void;\n        /**\n         * Reads a double-precision floating point array from the {@link MessageParcel} object.\n         *\n         * @returns { number[] } Return a double-precision floating point array.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        readDoubleArray(): number[];\n        /**\n         * Reads a boolean array from the {@link MessageParcel} object.\n         *\n         * @param { boolean[] } dataIn - Indicates the boolean array to read.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        readBooleanArray(dataIn: boolean[]): void;\n        /**\n         * Reads a boolean array from the {@link MessageParcel} object.\n         *\n         * @returns { boolean[] } Return a boolean array.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        readBooleanArray(): boolean[];\n        /**\n         * Reads a single character array from the {@link MessageParcel} object.\n         *\n         * @param { number[] } dataIn - Indicates the single character array to read.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        readCharArray(dataIn: number[]): void;\n        /**\n         * Reads a single character array from the {@link MessageParcel} object.\n         *\n         * @returns { number[] } Return a single character array.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        readCharArray(): number[];\n        /**\n         * Reads a string array from the {@link MessageParcel} object.\n         *\n         * @param { string[] } dataIn - Indicates the string array to read.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        readStringArray(dataIn: string[]): void;\n        /**\n         * Reads a string array from the {@link MessageParcel} object.\n         *\n         * @returns { string[] } Return a string array.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        readStringArray(): string[];\n        /**\n         * Reads the specified {@link Sequenceable} array from this {@link MessageParcel} object.\n         *\n         * @param { Sequenceable[] } sequenceableArray - Sequenceable array to read.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        readSequenceableArray(sequenceableArray: Sequenceable[]): void;\n        /**\n         * Reads the specified {@link IRemoteObject} array from this {@link MessageParcel} object.\n         *\n         * @param { IRemoteObject[] } objects - Reads data from this {@link MessageParcel} object to the specified\n         *                            {@link IRemoteObject} array.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        readRemoteObjectArray(objects: IRemoteObject[]): void;\n        /**\n         * Reads {@link IRemoteObject} objects from this {@link MessageParcel} object.\n         *\n         * @returns { IRemoteObject[] } An array of {@link IRemoteObject} objects obtained.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        readRemoteObjectArray(): IRemoteObject[];\n        /**\n         * Closes the specified file descriptor.\n         *\n         * @param { number } fd - File descriptor to be closed.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        static closeFileDescriptor(fd: number): void;\n        /**\n         * Duplicates the specified file descriptor.\n         *\n         * @param { number } fd - File descriptor to be duplicated.\n         * @returns { number } Return a duplicated file descriptor.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        static dupFileDescriptor(fd: number): number;\n        /**\n         * Checks whether this {@link MessageParcel} object contains a file descriptor.\n         *\n         * @returns { boolean } Return {@code true} if the {@link MessageParcel} object contains a file descriptor;\n         *                      return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        containFileDescriptors(): boolean;\n        /**\n         * Writes a file descriptor to this {@link MessageParcel} object.\n         *\n         * @param { number } fd - File descriptor to wrote.\n         * @returns { boolean } Return {@code true} if the operation is successful; return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        writeFileDescriptor(fd: number): boolean;\n        /**\n         * Reads a file descriptor from this {@link MessageParcel} object.\n         *\n         * @returns { number } Return a file descriptor obtained.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        readFileDescriptor(): number;\n        /**\n         * Writes an anonymous shared memory object to this {@link MessageParcel} object.\n         *\n         * @param { Ashmem } ashmem - Anonymous shared memory object to wrote.\n         * @returns { boolean } Return {@code true} if the operation is successful; return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        writeAshmem(ashmem: Ashmem): boolean;\n        /**\n         * Reads the anonymous shared memory object from this {@link MessageParcel} object.\n         *\n         * @returns { Ashmem } Anonymous share object obtained.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        readAshmem(): Ashmem;\n        /**\n         * Obtains the maximum amount of raw data that can be sent in a time.\n         *\n         * @returns { number } 128 MB.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        getRawDataCapacity(): number;\n        /**\n         * Writes raw data to this {@link MessageParcel} object.\n         *\n         * @param { number[] } rawData - Raw data to wrote.\n         * @param { number } size - Size of the raw data, in bytes.\n         * @returns { boolean } Return {@code true} if the operation is successful; return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        writeRawData(rawData: number[], size: number): boolean;\n        /**\n         * Reads raw data from this {@link MessageParcel} object.\n         *\n         * @param { number } size - Size of the raw data to read.\n         * @returns { number[] } Return the raw data obtained, in bytes.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        readRawData(size: number): number[];\n    }\n    /**\n     * A data object used for remote procedure call (RPC).\n     * <p>\n     * During RPC, the sender can use the write methods provided by {@link MessageSequence} to\n     * write the to-be-sent data into a {@link MessageSequence} object in a specific format, and the receiver can use the\n     * read methods provided by {@link MessageSequence} to read data of the specific format from\n     * the {@link MessageSequence} object.\n     * <p>\n     * <p>\n     * The default capacity of a {@link MessageSequence} instance is 200KB. If you want more or less,\n     * use {@link #setCapacity(int)} to change it.\n     * </p>\n     * <b>Note</b>: Only data of the following data types can be written into or read from a {@link MessageSequence}:\n     * byte, byteArray, short, shortArray, int, intArray, long, longArray, float, floatArray, double, doubleArray,\n     * boolean, booleanArray, char, charArray, String, StringArray, {@link IRemoteObject}, IRemoteObjectArray,\n     * {@link Parcelable}, and ParcelableArray.\n     *\n     * @syscap SystemCapability.Communication.IPC.Core\n     * @since 9\n     */\n    class MessageSequence {\n        /**\n         * Creates an empty {@link MessageSequence} object.\n         *\n         * @returns { MessageSequence } Return the object created.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        static create(): MessageSequence;\n        /**\n         * Reclaim the {@link MessageSequence} object.\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        reclaim(): void;\n        /**\n         * Serialize a remote object and writes it to the {@link MessageSequence} object.\n         *\n         * @param { IRemoteObject } object - Remote object to serialize.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match.\n         * @throws { BusinessError } 1900008 - The proxy or remote object is invalid.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        writeRemoteObject(object: IRemoteObject): void;\n        /**\n         * Reads a remote object from {@link MessageSequence} object.\n         *\n         * @returns { IRemoteObject } Return the remote object.\n         * @throws { BusinessError } 1900008 - The proxy or remote object is invalid.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readRemoteObject(): IRemoteObject;\n        /**\n         * Writes an interface token into the {@link MessageSequence} object.\n         *\n         * @param { string } token - Interface descriptor to write.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match;\n         *     3.The string length exceeds 40960 bytes;\n         *     4.The number of bytes copied to the buffer is different from the length of the obtained string.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        writeInterfaceToken(token: string): void;\n        /**\n         * Reads an interface token from the {@link MessageSequence} object.\n         *\n         * @returns { string } Return a string value.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readInterfaceToken(): string;\n        /**\n         * Obtains the size of data (in bytes) contained in the {@link MessageSequence} object.\n         *\n         * @returns { number } Return the size of data contained in the {@link MessageSequence} object.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        getSize(): number;\n        /**\n         * Obtains the storage capacity (in bytes) of the {@link MessageSequence} object.\n         *\n         * @returns { number } Return the storage capacity of the {@link MessageSequence} object.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        getCapacity(): number;\n        /**\n         * Sets the size of data (in bytes) contained in the {@link MessageSequence} object.\n         * <p>{@code false} is returned if the data size set in this method is greater\n         * than the storage capacity of the {@link MessageSequence}.\n         *\n         * @param { number } size - Indicates the data size of the {@link MessageSequence} object.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        setSize(size: number): void;\n        /**\n         * Sets the storage capacity (in bytes) of the {@link MessageSequence} object.\n         * <p>{@code false} is returned if the capacity set in this method is less than\n         * the size of data contained in the {@link MessageSequence}.\n         *\n         * @param { number } size - Indicates the storage capacity of the {@link MessageSequence} object.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @throws { BusinessError } 1900011 - Memory allocation failed.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        setCapacity(size: number): void;\n        /**\n         * Obtains the writable data space (in bytes) in the {@link MessageSequence} object.\n         * <p>Writable data space = Storage capacity of the {@link MessageSequence} – Size of data contained in\n         * the {@link MessageSequence}.\n         *\n         * @returns { number } Return the writable data space of the {@link MessageSequence} object.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        getWritableBytes(): number;\n        /**\n         * Obtains the readable data space (in bytes) in the {@link MessageSequence} object.\n         * <p>Readable data space = Size of data contained in the {@link MessageSequence} – Size of data that has been read.\n         *\n         * @returns { number } Return the readable data space of the {@link MessageSequence} object.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        getReadableBytes(): number;\n        /**\n         * Obtains the current read position in the {@link MessageSequence} object.\n         *\n         * @returns { number } Return the current read position in the {@link MessageSequence} object.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        getReadPosition(): number;\n        /**\n         * Obtains the current write position in the {@link MessageSequence} object.\n         *\n         * @returns { number } Return the current write position in the {@link MessageSequence} object.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        getWritePosition(): number;\n        /**\n         * Changes the current read position in the {@link MessageSequence} object.\n         * <p>Generally, you are advised not to change the current read position. If you must\n         * change it, change it to an accurate position. Otherwise, the read data may be incorrect.\n         *\n         * @param { number } pos - Indicates the target position to start data reading.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        rewindRead(pos: number): void;\n        /**\n         * Changes the current write position in the {@link MessageSequence} object.\n         * <p>Generally, you are advised not to change the current write position. If you must\n         * change it, change it to an accurate position. Otherwise, the data to be read may be incorrect.\n         *\n         * @param { number } pos - Indicates the target position to start data writing.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        rewindWrite(pos: number): void;\n        /**\n         * Writes information to this MessageSequence object indicating that no exception occurred.\n         * <p>After handling requests, you should call this method before writing any data to reply\n         * {@link MessageSequence}.\n         *\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        writeNoException(): void;\n        /**\n         * Reads the exception information from this MessageSequence object.\n         * <p>If exception was thrown in server side, it will be thrown here.\n         * This method should be called before reading any data from reply {@link MessageSequence}\n         * if {@link writeNoException} was invoked in server side.\n         *\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readException(): void;\n        /**\n         * Writes a byte value into the {@link MessageSequence} object.\n         *\n         * @param { number } val - Indicates the byte value to write.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        writeByte(val: number): void;\n        /**\n         * Writes a short integer value into the {@link MessageSequence} object.\n         *\n         * @param { number } val - Indicates the short integer value to write.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        writeShort(val: number): void;\n        /**\n         * Writes an integer value into the {@link MessageSequence} object.\n         *\n         * @param { number } val - Indicates the integer value to write.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        writeInt(val: number): void;\n        /**\n         * Writes a long integer value into the {@link MessageSequence} object.\n         *\n         * @param { number } val - Indicates the long integer value to write.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        writeLong(val: number): void;\n        /**\n         * Writes a floating point value into the {@link MessageSequence} object.\n         *\n         * @param { number } val - Indicates the floating point value to write.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        writeFloat(val: number): void;\n        /**\n         * Writes a double-precision floating point value into the {@link MessageSequence} object.\n         *\n         * @param { number } val - Indicates the double-precision floating point value to write.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        writeDouble(val: number): void;\n        /**\n         * Writes a boolean value into the {@link MessageSequence} object.\n         *\n         * @param { boolean } val - Indicates the boolean value to write.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        writeBoolean(val: boolean): void;\n        /**\n         * Writes a single character value into the {@link MessageSequence} object.\n         *\n         * @param { number } val - Indicates the single character value to write.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        writeChar(val: number): void;\n        /**\n         * Writes a string value into the {@link MessageSequence} object.\n         *\n         * @param { string } val - Indicates the string value to write.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match;\n         *     3.The string length exceeds 40960 bytes;\n         *     4.The number of bytes copied to the buffer is different from the length of the obtained string.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        writeString(val: string): void;\n        /**\n         * Writes a {@link Parcelable} object into the {@link MessageSequence} object.\n         *\n         * @param { Parcelable } val - Indicates the {@link Parcelable} object to write.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        writeParcelable(val: Parcelable): void;\n        /**\n         * Writes a byte array into the {@link MessageSequence} object.\n         *\n         * @param { number[] } byteArray - Indicates the byte array to write.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The parameter is an empty array;\n         *     2.The number of parameters is incorrect;\n         *     3.The parameter type does not match;\n         *     4.The element does not exist in the array.\n         *     5.The type of the element in the array is incorrect.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        writeByteArray(byteArray: number[]): void;\n        /**\n         * Writes a short integer array into the {@link MessageSequence} object.\n         * Ensure that the data type and size comply with the interface definition.\n         * Otherwise,data may be truncated.\n         *\n         * @param { number[] } shortArray - Indicates the short integer array to write.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The parameter is an empty array;\n         *     2.The number of parameters is incorrect;\n         *     3.The parameter type does not match;\n         *     4.The element does not exist in the array;\n         *     5.The type of the element in the array is incorrect.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        writeShortArray(shortArray: number[]): void;\n        /**\n         * Writes an integer array into the {@link MessageSequence} object.\n         * Ensure that the data type and size comply with the interface definition.\n         * Otherwise,data may be truncated.\n         *\n         * @param { number[] } intArray - Indicates the integer array to write.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The parameter is an empty array;\n         *     2.The number of parameters is incorrect;\n         *     3.The parameter type does not match;\n         *     4.The element does not exist in the array;\n         *     5.The type of the element in the array is incorrect.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        writeIntArray(intArray: number[]): void;\n        /**\n         * Writes a long integer array into the {@link MessageSequence} object.\n         * Ensure that the data type and size comply with the interface definition.\n         * Otherwise,data may be truncated.\n         *\n         * @param { number[] } longArray - Indicates the long integer array to write.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The parameter is an empty array;\n         *     2.The number of parameters is incorrect;\n         *     3.The parameter type does not match;\n         *     4.The element does not exist in the array;\n         *     5.The type of the element in the array is incorrect.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        writeLongArray(longArray: number[]): void;\n        /**\n         * Writes a floating point array into the {@link MessageSequence} object.\n         * Ensure that the data type and size comply with the interface definition.\n         * Otherwise,data may be truncated.\n         *\n         * @param { number[] } floatArray - Indicates the floating point array to write.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The parameter is an empty array;\n         *     2.The number of parameters is incorrect;\n         *     3.The parameter type does not match;\n         *     4.The element does not exist in the array;\n         *     5.The type of the element in the array is incorrect.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        writeFloatArray(floatArray: number[]): void;\n        /**\n         * Writes a double-precision floating point array into the {@link MessageSequence} object.\n         * Ensure that the data type and size comply with the interface definition.\n         * Otherwise,data may be truncated.\n         *\n         * @param { number[] } doubleArray - Indicates the double-precision floating point array to write.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The parameter is an empty array;\n         *     2.The number of parameters is incorrect;\n         *     3.The parameter type does not match;\n         *     4.The element does not exist in the array;\n         *     5.The type of the element in the array is incorrect.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        writeDoubleArray(doubleArray: number[]): void;\n        /**\n         * Writes a boolean array into the {@link MessageSequence} object.\n         * Ensure that the data type and size comply with the interface definition.\n         * Otherwise,data may be truncated.\n         *\n         * @param { boolean[] } booleanArray - Indicates the boolean array to write.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The parameter is an empty array;\n         *     2.The number of parameters is incorrect;\n         *     3.The parameter type does not match;\n         *     4.The element does not exist in the array.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        writeBooleanArray(booleanArray: boolean[]): void;\n        /**\n         * Writes a single character array into the {@link MessageSequence} object.\n         * Ensure that the data type and size comply with the interface definition.\n         * Otherwise,data may be truncated.\n         *\n         * @param { number[] } charArray - Indicates the single character array to write.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The parameter is an empty array;\n         *     2.The number of parameters is incorrect;\n         *     3.The parameter type does not match;\n         *     4.The element does not exist in the array.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        writeCharArray(charArray: number[]): void;\n        /**\n         * Writes a string array into the {@link MessageSequence} object.\n         * Ensure that the data type and size comply with the interface definition.\n         * Otherwise,data may be truncated.\n         *\n         * @param { string[] } stringArray - Indicates the string array to write.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The parameter is an empty array;\n         *     2.The number of parameters is incorrect;\n         *     3.The parameter type does not match;\n         *     4.The string length exceeds 40960 bytes;\n         *     5.The number of bytes copied to the buffer is different from the length of the obtained string.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        writeStringArray(stringArray: string[]): void;\n        /**\n         * Writes a {@link Parcelable} object array into the {@link MessageSequence} object.\n         *\n         * @param { Parcelable[] } parcelableArray - Indicates the {@link Parcelable} object array to write.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The parameter is an empty array;\n         *     2.The number of parameters is incorrect;\n         *     3.The parameter type does not match;\n         *     4.The element does not exist in the array.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        writeParcelableArray(parcelableArray: Parcelable[]): void;\n        /**\n         * Writes an array of {@link IRemoteObject} objects to this {@link MessageSequence} object.\n         *\n         * @param { IRemoteObject[] } objectArray - Array of {@link IRemoteObject} objects to write.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The parameter is an empty array;\n         *     2.The number of parameters is incorrect;\n         *     3.The parameter type does not match;\n         *     4.The element does not exist in the array;\n         *     5.The obtained remoteObject is null.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        writeRemoteObjectArray(objectArray: IRemoteObject[]): void;\n        /**\n         * Reads a byte value from the {@link MessageSequence} object.\n         *\n         * @returns { number } Return a byte value.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readByte(): number;\n        /**\n         * Reads a short integer value from the {@link MessageSequence} object.\n         *\n         * @returns { number } Return a short integer value.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readShort(): number;\n        /**\n         * Reads an integer value from the {@link MessageSequence} object.\n         *\n         * @returns { number } Return an integer value.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readInt(): number;\n        /**\n         * Reads a long integer value from the {@link MessageSequence} object.\n         *\n         * @returns { number } Return a long integer value.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readLong(): number;\n        /**\n         * Reads a floating point value from the {@link MessageSequence} object.\n         *\n         * @returns { number } Return a floating point value.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readFloat(): number;\n        /**\n         * Reads a double-precision floating point value from the {@link MessageSequence} object.\n         *\n         * @returns { number } Return a double-precision floating point value.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readDouble(): number;\n        /**\n         * Reads a boolean value from the {@link MessageSequence} object.\n         *\n         * @returns { boolean } Return a boolean value.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readBoolean(): boolean;\n        /**\n         * Reads a single character value from the {@link MessageSequence} object.\n         *\n         * @returns { number } Return a single character value.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readChar(): number;\n        /**\n         * Reads a string value from the {@link MessageSequence} object.\n         *\n         * @returns { string } Return a string value.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readString(): string;\n        /**\n         * Reads a {@link Parcelable} object from the {@link MessageSequence} instance.\n         *\n         * @param { Parcelable } dataIn - Indicates the {@link Parcelable} object that needs to perform\n         *                       the {@code unmarshalling} operation using the {@link MessageSequence}.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @throws { BusinessError } 1900012 - Failed to call the JS callback function.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readParcelable(dataIn: Parcelable): void;\n        /**\n         * Writes a byte array into the {@link MessageSequence} object.\n         *\n         * @param { number[] } dataIn - Indicates the byte array read from MessageSequence.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The parameter is an empty array;\n         *     2.The number of parameters is incorrect;\n         *     3.The parameter type does not match.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readByteArray(dataIn: number[]): void;\n        /**\n         * Reads a byte array from the {@link MessageSequence} object.\n         *\n         * @returns { number[] } Return a byte array.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readByteArray(): number[];\n        /**\n         * Reads a short integer array from the {@link MessageSequence} object.\n         *\n         * @param { number[] } dataIn - Indicates the short integer array read from MessageSequence.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The parameter is an empty array;\n         *     2.The number of parameters is incorrect;\n         *     3.The parameter type does not match.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readShortArray(dataIn: number[]): void;\n        /**\n         * Reads a short integer array from the {@link MessageSequence} object.\n         *\n         * @returns { number[] } Return a short integer array.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readShortArray(): number[];\n        /**\n         * Reads an integer array from the {@link MessageSequence} object.\n         *\n         * @param { number[] } dataIn - Indicates the integer array to read.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The parameter is an empty array;\n         *     2.The number of parameters is incorrect;\n         *     3.The parameter type does not match.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readIntArray(dataIn: number[]): void;\n        /**\n         * Reads an integer array from the {@link MessageSequence} object.\n         *\n         * @returns { number[] } Return an integer array.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readIntArray(): number[];\n        /**\n         * Reads a long integer array from the {@link MessageSequence} object.\n         *\n         * @param { number[] } dataIn - Indicates the long integer array to read.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The parameter is an empty array;\n         *     2.The number of parameters is incorrect;\n         *     3.The parameter type does not match.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readLongArray(dataIn: number[]): void;\n        /**\n         * Reads a long integer array from the {@link MessageSequence} object.\n         *\n         * @returns { number[] } Return a long integer array.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readLongArray(): number[];\n        /**\n         * Reads a floating point array from the {@link MessageSequence} object.\n         *\n         * @param { number[] } dataIn - Indicates the floating point array to read.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The parameter is an empty array;\n         *     2.The number of parameters is incorrect;\n         *     3.The parameter type does not match.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readFloatArray(dataIn: number[]): void;\n        /**\n         * Reads a floating point array from the {@link MessageSequence} object.\n         *\n         * @returns { number[] } Return a floating point array.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readFloatArray(): number[];\n        /**\n         * Reads a double-precision floating point array from the {@link MessageSequence} object.\n         *\n         * @param { number[] } dataIn - Indicates the double-precision floating point array to read.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The parameter is an empty array;\n         *     2.The number of parameters is incorrect;\n         *     3.The parameter type does not match.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readDoubleArray(dataIn: number[]): void;\n        /**\n         * Reads a double-precision floating point array from the {@link MessageSequence} object.\n         *\n         * @returns { number[] } Return a double-precision floating point array.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readDoubleArray(): number[];\n        /**\n         * Reads a boolean array from the {@link MessageSequence} object.\n         *\n         * @param { boolean[] } dataIn - Indicates the boolean array to read.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The parameter is an empty array;\n         *     2.The number of parameters is incorrect;\n         *     3.The parameter type does not match.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readBooleanArray(dataIn: boolean[]): void;\n        /**\n         * Reads a boolean array from the {@link MessageSequence} object.\n         *\n         * @returns { boolean[] } Return a boolean array.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readBooleanArray(): boolean[];\n        /**\n         * Reads a single character array from the {@link MessageSequence} object.\n         *\n         * @param { number[] } dataIn - Indicates the single character array to read.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The parameter is an empty array;\n         *     2.The number of parameters is incorrect;\n         *     3.The parameter type does not match.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readCharArray(dataIn: number[]): void;\n        /**\n         * Reads a single character array from the {@link MessageSequence} object.\n         *\n         * @returns { number[] } Return a single character array.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readCharArray(): number[];\n        /**\n         * Reads a string array from the {@link MessageSequence} object.\n         *\n         * @param { string[] } dataIn - Indicates the string array to read.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The parameter is an empty array;\n         *     2.The number of parameters is incorrect;\n         *     3.The parameter type does not match.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readStringArray(dataIn: string[]): void;\n        /**\n         * Reads a string array from the {@link MessageSequence} object.\n         *\n         * @returns { string[] } Return a string array.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readStringArray(): string[];\n        /**\n         * Reads the specified {@link Parcelable} array from this {@link MessageSequence} object.\n         *\n         * @param { Parcelable[] } parcelableArray - Parcelable array to read.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The parameter is an empty array;\n         *     2.The number of parameters is incorrect;\n         *     3.The parameter type does not match;\n         *     4.The length of the array passed when reading is not equal to the length passed when writing to the array;\n         *     5.The element does not exist in the array.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @throws { BusinessError } 1900012 - Failed to call the JS callback function.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readParcelableArray(parcelableArray: Parcelable[]): void;\n        /**\n         * Reads the specified {@link IRemoteObject} array from this {@link MessageSequence} object.\n         *\n         * @param { IRemoteObject[] } objects - Reads data from this {@link MessageSequence} object to\n         *                            the specified {@link IRemoteObject} array.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The parameter is an empty array;\n         *     2.The number of parameters is incorrect;\n         *     3.The parameter type does not match;\n         *     4.The length of the array passed when reading is not equal to the length passed when writing to the array.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readRemoteObjectArray(objects: IRemoteObject[]): void;\n        /**\n         * Reads {@link IRemoteObject} objects from this {@link MessageSequence} object.\n         *\n         * @returns { IRemoteObject[] } Return an array of {@link IRemoteObject} objects obtained.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readRemoteObjectArray(): IRemoteObject[];\n        /**\n         * Closes the specified file descriptor.\n         *\n         * @param { number } fd - File descriptor to be closed.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        static closeFileDescriptor(fd: number): void;\n        /**\n         * Duplicates the specified file descriptor.\n         *\n         * @param { number } fd - File descriptor to be duplicated.\n         * @returns { number } Return a duplicated file descriptor.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match.\n         * @throws { BusinessError } 1900013 - Failed to call dup.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        static dupFileDescriptor(fd: number): number;\n        /**\n         * Checks whether this {@link MessageSequence} object contains a file descriptor.\n         *\n         * @returns { boolean } Return {@code true} if the {@link MessageSequence} object contains a file descriptor;\n         *                      return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        containFileDescriptors(): boolean;\n        /**\n         * Writes a file descriptor to this {@link MessageSequence} object.\n         *\n         * @param { number } fd - File descriptor to wrote.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        writeFileDescriptor(fd: number): void;\n        /**\n         * Reads a file descriptor from this {@link MessageSequence} object.\n         *\n         * @returns { number } Return a file descriptor obtained.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readFileDescriptor(): number;\n        /**\n         * Writes an anonymous shared memory object to this {@link MessageSequence} object.\n         *\n         * @param { Ashmem } ashmem - Anonymous shared memory object to wrote.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter is not an instance of the Ashmem object.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        writeAshmem(ashmem: Ashmem): void;\n        /**\n         * Reads the anonymous shared memory object from this {@link MessageSequence} object.\n         *\n         * @returns { Ashmem } Return the anonymous share object obtained.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        readAshmem(): Ashmem;\n        /**\n         * Obtains the maximum amount of raw data that can be sent in a time.\n         *\n         * @returns { number } 128 MB.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        getRawDataCapacity(): number;\n        /**\n         * Writes raw data to this {@link MessageSequence} object.\n         *\n         * @param { number[] } rawData - Raw data to wrote.\n         * @param { number } size - Size of the raw data, in bytes.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The parameter is an empty array;\n         *     2.The number of parameters is incorrect;\n         *     3.The parameter type does not match;\n         *     4.The transferred size cannot be obtained;\n         *     5.The transferred size is less than or equal to 0;\n         *     6.The element does not exist in the array;\n         *     7.Failed to obtain typedArray information;\n         *     8.The array is not of type int32;\n         *     9.The length of typedarray is smaller than the size of the original data sent.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.rpc.MessageSequence#writeRawDataBuffer\n         */\n        writeRawData(rawData: number[], size: number): void;\n        /**\n         * Writes raw data to this {@link MessageSequence} object.\n         *\n         * @param { ArrayBuffer } rawData - Raw data to wrote.\n         * @param { number } size - Size of the raw data, in bytes.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match;\n         *     3.Failed to obtain arrayBuffer information;\n         *     4.The transferred size cannot be obtained;\n         *     5.The transferred size is less than or equal to 0;\n         *     6.The transferred size is greater than the byte length of ArrayBuffer.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 11\n         */\n        writeRawDataBuffer(rawData: ArrayBuffer, size: number): void;\n        /**\n         * Reads raw data from this {@link MessageSequence} object.\n         *\n         * @param { number } size - Size of the raw data to read.\n         * @returns { number[] } Return the raw data obtained, in bytes.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.rpc.MessageSequence#readRawDataBuffer\n         */\n        readRawData(size: number): number[];\n        /**\n         * Reads raw data from this {@link MessageSequence} object.\n         *\n         * @param { number } size - Size of the raw data to read.\n         * @returns { ArrayBuffer } Return the raw data obtained, in bytes.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match.\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 11\n         */\n        readRawDataBuffer(size: number): ArrayBuffer;\n        /**\n         * Writes the data in an ArrayBuffer object into this {@Link MessageSequence} object.\n         *\n         * @param { ArrayBuffer } buf - Data to write.\n         * @param { TypeCode } typeCode - Type of the ArrayBuffer data to write.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The parameter is an empty array;\n         *     2.The number of parameters is incorrect;\n         *     3.The parameter type does not match;\n         *     4.The obtained value of typeCode is incorrect;\n         *     5.Failed to obtain arrayBuffer information.\n         * @throws { BusinessError } 1900009 - Failed to write data to the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 12\n         */\n        writeArrayBuffer(buf: ArrayBuffer, typeCode: TypeCode): void;\n        /**\n         * Reads raw data from this {@link MessageSequence} object.\n         *\n         * @param { TypeCode } typeCode - Type of the ArrayBuffer read.\n         * @returns { ArrayBuffer } Returns the Arraybuffer obtained.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match;\n         *     3.The obtained value of typeCode is incorrect;\n         * @throws { BusinessError } 1900010 - Failed to read data from the message sequence.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 12\n         */\n        readArrayBuffer(typeCode: TypeCode): ArrayBuffer;\n    }\n    /**\n     * @typedef Sequenceable\n     * @syscap SystemCapability.Communication.IPC.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.rpc.Parcelable\n     */\n    interface Sequenceable {\n        /**\n         * Marshal this {@code Sequenceable} object into a {@link MessageParcel}.\n         *\n         * @param { MessageParcel } dataOut - Indicates the {@link MessageParcel} object to which the {@code Sequenceable}\n         *                          object will be marshalled.\n         * @returns { boolean } Return {@code true} if the marshalling is successful; return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        marshalling(dataOut: MessageParcel): boolean;\n        /**\n         * Unmarshal this {@code Sequenceable} object from a {@link MessageParcel}.\n         *\n         * @param { MessageParcel } dataIn - Indicates the {@link MessageParcel} object into which the {@code Sequenceable}\n         *                          object has been marshalled.\n         * @returns { boolean } Return {@code true} if the unmarshalling is successful; return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        unmarshalling(dataIn: MessageParcel): boolean;\n    }\n    /**\n     * @typedef Parcelable\n     * @syscap SystemCapability.Communication.IPC.Core\n     * @since 9\n     */\n    /**\n     * During inter-process communication, objects of the class are written to the {@link MessageSequence} and\n     * they are recovered from the {@link MessageSequence}.\n     *\n     * @typedef Parcelable\n     * @syscap SystemCapability.Communication.IPC.Core\n     * @since 11\n     */\n    interface Parcelable {\n        /**\n         * Marshal this {@code Parcelable} object into a {@link MessageSequence}.\n         *\n         * @param { MessageSequence } dataOut - Indicates the {@link MessageSequence} object to which the {@code Parcelable}\n         *                            object will be marshalled.\n         * @returns { boolean } Return {@code true} if the marshalling is successful; return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        marshalling(dataOut: MessageSequence): boolean;\n        /**\n         * Unmarshal this {@code Parcelable} object from a {@link MessageSequence}.\n         *\n         * @param { MessageSequence } dataIn - Indicates the {@link MessageSequence} object into\n         *                            which the {@code Parcelable} object has been marshalled.\n         * @returns { boolean } Return {@code true} if the unmarshalling is successful; return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        unmarshalling(dataIn: MessageSequence): boolean;\n    }\n    /**\n     * Defines the response to the request.\n     * <p> SendRequestResult object contains four members, namely error code of this operation, request code, data parcel\n     * and reply parcel.\n     *\n     * @typedef SendRequestResult\n     * @syscap SystemCapability.Communication.IPC.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.rpc.RequestResult\n     */\n    interface SendRequestResult {\n        /**\n         * Error code. 0 indicates successful, otherwise it is failed.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        errCode: number;\n        /**\n         * Message code. It is same as the code in {@link SendRequest} method.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        code: number;\n        /**\n         * MessageParcel object sent to the peer process.\n         * It is the same object in {@link SendRequest} method.\n         *\n         * @type { MessageParcel }\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        data: MessageParcel;\n        /**\n         * MessageParcel object returned by the peer process.\n         * It is the same object in {@link SendRequest} method.\n         *\n         * @type { MessageParcel }\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         */\n        reply: MessageParcel;\n    }\n    /**\n     * Defines the response to the request.\n     * <p> SendRequestResult object contains four members, namely error code of this operation, request code, data parcel\n     * and reply parcel.\n     *\n     * @typedef RequestResult\n     * @syscap SystemCapability.Communication.IPC.Core\n     * @since 9\n     */\n    interface RequestResult {\n        /**\n         * Error code. 0 indicates successful, otherwise it is failed.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        errCode: number;\n        /**\n         * Message code. It is same as the code in {@link SendRequest} method.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        code: number;\n        /**\n         * MessageSequence object sent to the peer process.\n         * It is the same object in {@link SendRequest} method.\n         *\n         * @type { MessageSequence }\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        data: MessageSequence;\n        /**\n         * MessageSequence object returned by the peer process.\n         * It is the same object in {@link SendRequest} method.\n         *\n         * @type { MessageSequence }\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        reply: MessageSequence;\n    }\n    /**\n     * @syscap SystemCapability.Communication.IPC.Core\n     * @since 7\n     */\n    /**\n     * Used to query or get interface descriptors, add or remove death notifications, dump object status to\n     * a specific file, and send messages.\n     *\n     * @syscap SystemCapability.Communication.IPC.Core\n     * @since 11\n     */\n    abstract class IRemoteObject {\n        /**\n         * Queries the description of an interface.\n         * <p>A valid {@link IRemoteBroker} object is returned for an interface used by the service provider;\n         * {@code null} is returned for an interface used by the service user,\n         * indicating that the interface is not a local one.\n         *\n         * @param { string } descriptor - Indicates the interface descriptor.\n         * @returns { IRemoteBroker } Return the {@link IRemoteBroker} object bound to the specified interface descriptor.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.rpc.IRemoteObject#getLocalInterface\n         */\n        queryLocalInterface(descriptor: string): IRemoteBroker;\n        /**\n         * Queries the description of an interface.\n         * <p>A valid {@link IRemoteBroker} object is returned for an interface used by the service provider;\n         * {@code null} is returned for an interface used by the service user,\n         * indicating that the interface is not a local one.\n         *\n         * @param { string } descriptor - Indicates the interface descriptor.\n         * @returns { IRemoteBroker } Return the {@link IRemoteBroker} object bound to the specified interface descriptor.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match;\n         *     3.The string length exceeds 40960 bytes;\n         *     4.The number of bytes copied to the buffer is different from the length of the obtained string.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        getLocalInterface(descriptor: string): IRemoteBroker;\n        /**\n         * Sends a {@link MessageParcel} message to the peer process in synchronous or asynchronous mode.\n         * <p>If asynchronous mode is set for {@code option}, a response is returned immediately.\n         * If synchronous mode is set for {@code option}, the interface will wait for a response from the peer process\n         * until the request times out. The user must prepare {@code reply} for receiving the execution result\n         * given by the peer process.\n         *\n         * @param { number } code - Indicates the message code, which is determined by both sides of the communication.\n         * If the interface is generated by the IDL tool, the message code is automatically generated by IDL.\n         * @param { MessageParcel } data - Indicates the {@link MessageParcel} object sent to the peer process.\n         * @param { MessageParcel } reply - Indicates the {@link MessageParcel} object returned by the peer process.\n         * @param { MessageOption } options - Indicates the synchronous or asynchronous mode to send messages.\n         * @returns { boolean } Return {@code true} if the method is called successfully; return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): boolean;\n        /**\n         * Sends a {@link MessageParcel} message to the peer process in synchronous or asynchronous mode.\n         * <p>If options indicates the asynchronous mode, a promise will be fulfilled immediately\n         * and the reply message does not contain any content. If options indicates the synchronous mode,\n         * a promise will be fulfilled when the response to sendRequest is returned,\n         * and the reply message contains the returned information.\n         *\n         * @param { number } code - Message code called by the request, which is determined by the client and server.\n         * If the method is generated by an IDL tool, the message code is automatically generated by the IDL tool.\n         * @param { MessageParcel } data - {@link MessageParcel} object holding the data to send.\n         * @param { MessageParcel } reply - {@link MessageParcel} object that receives the response.\n         * @param { MessageOption } options - Indicates the synchronous or asynchronous mode to send messages.\n         * @returns { Promise<SendRequestResult> } Promise used to return the {@link SendRequestResult} instance.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.rpc.IRemoteObject#sendMessageRequest\n         */\n        sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): Promise<SendRequestResult>;\n        /**\n         * Sends a {@link MessageSequence} message to the peer process asynchronously.\n         * <p>If options indicates the asynchronous mode, a promise will be fulfilled immediately\n         * and the reply message does not contain any content. If options indicates the synchronous mode,\n         * a promise will be fulfilled when the response to sendMessageRequest is returned,\n         * and the reply message contains the returned information.\n         *\n         * @param { number } code - Message code called by the request, which is determined by the client and server.\n         * If the method is generated by an IDL tool, the message code is automatically generated by the IDL tool.\n         * @param {MessageSequence } data - {@link MessageSequence} object holding the data to send.\n         * @param {MessageSequence } reply - {@link MessageSequence} object that receives the response.\n         * @param { MessageOption } options - Indicates the synchronous or asynchronous mode to send messages.\n         * @returns { Promise<RequestResult> } Promise used to return the {@link RequestResult} instance.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match;\n         *     3.Failed to obtain the passed object instance.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        sendMessageRequest(code: number, data: MessageSequence, reply: MessageSequence, options: MessageOption): Promise<RequestResult>;\n        /**\n         * Sends a {@link MessageParcel} message to the peer process in synchronous or asynchronous mode.\n         * <p>If options indicates the asynchronous mode, a callback will be invoked immediately\n         * and the reply message does not contain any content. If options indicates the synchronous mode,\n         * a callback will be invoked when the response to sendRequest is returned,\n         * and the reply message contains the returned information.\n         *\n         * @param { number } code - Message code called by the request, which is determined by the client and server.\n         * If the method is generated by an IDL tool, the message code is automatically generated by the IDL tool.\n         * @param { MessageParcel } data - {@link MessageParcel} object holding the data to send.\n         * @param { MessageParcel } reply - {@link MessageParcel} object that receives the response.\n         * @param { MessageOption } options - Indicates the synchronous or asynchronous mode to send messages.\n         * @param { AsyncCallback<SendRequestResult> } callback - Callback for receiving the sending result.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.rpc.IRemoteObject#sendMessageRequest\n         */\n        sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption, callback: AsyncCallback<SendRequestResult>): void;\n        /**\n         * Sends a {@link MessageSequence} message to the peer process in synchronous or asynchronous mode.\n         * <p>If options indicates the asynchronous mode, a callback will be invoked immediately\n         * and the reply message does not contain any content. If options indicates the synchronous mode,\n         * a callback will be invoked when the response to sendMessageRequest is returned,\n         * and the reply message contains the returned information.\n         *\n         * @param {number } code - Message code called by the request, which is determined by the client and server.\n         * If the method is generated by an IDL tool, the message code is automatically generated by the IDL tool.\n         * @param { MessageSequence } data - {@link MessageSequence} object holding the data to send.\n         * @param { MessageSequence } reply - {@link MessageSequence} object that receives the response.\n         * @param { MessageOption } options - Indicates the synchronous or asynchronous mode to send messages.\n         * @param { AsyncCallback<RequestResult> } callback - Callback for receiving the sending result.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match;\n         *     3.Failed to obtain the passed object instance.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        sendMessageRequest(code: number, data: MessageSequence, reply: MessageSequence, options: MessageOption, callback: AsyncCallback<RequestResult>): void;\n        /**\n         * Register a callback used to receive notifications of the death of a remote object.\n         *\n         * @param { DeathRecipient } recipient - Indicates the callback to be registered.\n         * @param { number } flags - Indicates the flag of the death notification.\n         * @returns { boolean } Return {@code true} if the callback is registered successfully;\n         *                      return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.rpc.IRemoteObject#registerDeathRecipient\n         */\n        addDeathRecipient(recipient: DeathRecipient, flags: number): boolean;\n        /**\n         * Register a callback used to receive notifications of the death of a remote object.\n         *\n         * @param { DeathRecipient } recipient - Indicates the callback to be registered.\n         * @param { number } flags - Indicates the flag of the death notification.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match;\n         *     3.The callback used to receive remote object death notifications is empty.\n         * @throws { BusinessError } 1900005 - Operation allowed only for the proxy object.\n         * @throws { BusinessError } 1900008 - The proxy or remote object is invalid.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        registerDeathRecipient(recipient: DeathRecipient, flags: number): void;\n        /**\n         * Unregister a callback used to receive notifications of the death of a remote object.\n         *\n         * @param { DeathRecipient } recipient - Indicates the callback to be unregister.\n         * @param { number } flags - Indicates the flag of the death notification.\n         * @returns { boolean } Return {@code true} if the callback is unregister successfully;\n         *                      return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.rpc.IRemoteObject#unregisterDeathRecipient\n         */\n        removeDeathRecipient(recipient: DeathRecipient, flags: number): boolean;\n        /**\n         * Unregister a callback used to receive notifications of the death of a remote object.\n         *\n         * @param { DeathRecipient } recipient - Indicates the callback to be unregister.\n         * @param { number } flags - Indicates the flag of the death notification.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match;\n         *     3.The callback used to receive remote object death notifications is empty.\n         * @throws { BusinessError } 1900005 - Operation allowed only for the proxy object.\n         * @throws { BusinessError } 1900008 - The proxy or remote object is invalid.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        unregisterDeathRecipient(recipient: DeathRecipient, flags: number): void;\n        /**\n         * Obtains the interface descriptor of an object.\n         * <p>The interface descriptor is a character string.\n         *\n         * @returns { string } Return the interface descriptor.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.rpc.IRemoteObject#getDescriptor\n         */\n        getInterfaceDescriptor(): string;\n        /**\n         * Obtains the interface descriptor of an object.\n         * <p>The interface descriptor is a character string.\n         *\n         * @returns { string } Return the interface descriptor.\n         * @throws { BusinessError } 1900008 - The proxy or remote object is invalid.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        getDescriptor(): string;\n        /**\n         * Checks whether an object is dead.\n         *\n         * @returns { boolean } Return {@code true} if the object is dead; return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         */\n        isObjectDead(): boolean;\n    }\n    /**\n     * @typedef IRemoteBroker\n     * @syscap SystemCapability.Communication.IPC.Core\n     * @since 7\n     */\n    /**\n     * Used to define the communication interface of the IPC communication objects.\n     *\n     * @typedef IRemoteBroker\n     * @syscap SystemCapability.Communication.IPC.Core\n     * @since 11\n     */\n    interface IRemoteBroker {\n        /**\n         * Obtains a proxy or remote object. This method must be implemented by its derived classes.\n         *\n         * @returns { IRemoteObject } Return the RemoteObject if the caller is a RemoteObject; return the IRemoteObject,\n         * that is, the holder of this RemoteProxy object, if the caller is a RemoteProxy object.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         */\n        asObject(): IRemoteObject;\n    }\n    /**\n     * @typedef DeathRecipient\n     * @syscap SystemCapability.Communication.IPC.Core\n     * @since 7\n     */\n    /**\n     * Used to subscribe to death notifications for remote objects.\n     * <p>\n     * When a remote object subscribed to the notification dies, the local end can receive a message and call\n     * the onRemoteDied operation. The death of a remote object can be caused by the death of the process to which the\n     * remote object belongs, the shutdown or restart of the device to which the remote object belongs,\n     * or the death of the remote object when the remote object and the local object belong to different devices,\n     * and when the remote object leaves the network.\n     * </p>\n     *\n     * @typedef DeathRecipient\n     * @syscap SystemCapability.Communication.IPC.Core\n     * @since 11\n     */\n    interface DeathRecipient {\n        /**\n         * Called to perform subsequent operations when a death notification of the remote object is received.\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         */\n        onRemoteDied(): void;\n    }\n    /**\n     * @syscap SystemCapability.Communication.IPC.Core\n     * @since 7\n     */\n    /**\n     * Public Message Option, using the specified flag type, constructs the specified MessageOption object.\n     *\n     * @syscap SystemCapability.Communication.IPC.Core\n     * @since 11\n     */\n    class MessageOption {\n        /**\n         * Indicates synchronous call.\n         *\n         * @type { number }\n         * @default 0\n         * @static\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         */\n        static TF_SYNC: number;\n        /**\n         * Indicates asynchronous call.\n         *\n         * @type { number }\n         * @default 1\n         * @static\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         */\n        static TF_ASYNC: number;\n        /**\n         * Indicates the sendRequest API for returning the file descriptor.\n         *\n         * @type { number }\n         * @default 16\n         * @static\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         */\n        static TF_ACCEPT_FDS: number;\n        /**\n         * Indicates the wait time for RPC, in seconds. It is NOT used in IPC case.\n         *\n         * @default 4\n         * @static\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         */\n        /**\n         * Indicates the wait time for RPC, in seconds. It is NOT used in IPC case.\n         *\n         * @type { number }\n         * @default 8\n         * @static\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 11\n         */\n        static TF_WAIT_TIME: number;\n        /**\n         * A constructor used to create a MessageOption instance.\n         *\n         * @param { number } syncFlags - Specifies whether the SendRequest is called synchronously (default) or asynchronously.\n         * @param { number } waitTime - Maximum wait time for a RPC call. The default value is TF_WAIT_TIME.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         */\n        constructor(syncFlags?: number, waitTime?: number);\n        /**\n         * A constructor used to create a MessageOption instance.\n         *\n         * @param { boolean } async - Specifies whether the SendRequest is called synchronously (default) or asynchronously.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        constructor(async?: boolean);\n        /**\n         * Obtains the SendRequest call flag, which can be synchronous or asynchronous.\n         *\n         * @returns { number } Return whether the SendRequest is called synchronously or asynchronously.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         */\n        getFlags(): number;\n        /**\n         * Sets the SendRequest call flag, which can be synchronous or asynchronous.\n         *\n         * @param { number } flags - Indicates the call flag, which can be synchronous or asynchronous.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         */\n        setFlags(flags: number): void;\n        /**\n         * Obtains the SendRequest call flag, which can be synchronous or asynchronous.\n         *\n         * @returns { boolean } Return {@code true} if the asynchronous call succeeds;\n         *                      return {@code false} if the synchronous call succeeds.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        isAsync(): boolean;\n        /**\n         * Sets the SendRequest call flag, which can be synchronous or asynchronous.\n         *\n         * @param { boolean } async - Indicates the call flag, which can be synchronous or asynchronous.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        setAsync(async: boolean): void;\n        /**\n         * Obtains the maximum wait time for this RPC call.\n         *\n         * @returns { number } Return maximum wait time obtained.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         */\n        getWaitTime(): number;\n        /**\n         * Sets the maximum wait time for this RPC call.\n         *\n         * @param { number } waitTime - Indicates maximum wait time to set.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         */\n        setWaitTime(waitTime: number): void;\n    }\n    /**\n     * @extends IRemoteObject\n     * @syscap SystemCapability.Communication.IPC.Core\n     * @since 7\n     */\n    /**\n     * Implement remote objects. The service provider must inherit this class.\n     *\n     * @extends IRemoteObject\n     * @syscap SystemCapability.Communication.IPC.Core\n     * @since 11\n     */\n    class RemoteObject extends IRemoteObject {\n        /**\n         * A constructor to create a RemoteObject instance.\n         *\n         * @param { string } descriptor - Specifies interface descriptor.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         */\n        constructor(descriptor: string);\n        /**\n         * Queries a remote object using an interface descriptor.\n         *\n         * @param { string } descriptor - Indicates the interface descriptor used to query the remote object.\n         * @returns { IRemoteBroker } Return the remote object matching the interface descriptor;\n         *                            return null if no such remote object is found.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.rpc.RemoteObject#getLocalInterface\n         */\n        queryLocalInterface(descriptor: string): IRemoteBroker;\n        /**\n         * Queries a remote object using an interface descriptor.\n         *\n         * @param { string } descriptor - Indicates the interface descriptor used to query the remote object.\n         * @returns { IRemoteBroker } Return the remote object matching the interface descriptor;\n         *                            return null if no such remote object is found.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match;\n         *     3.The string length exceeds 40960 bytes;\n         *     4.The number of bytes copied to the buffer is different from the length of the obtained string.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        getLocalInterface(descriptor: string): IRemoteBroker;\n        /**\n         * Queries an interface descriptor.\n         *\n         * @returns { string } Return the interface descriptor.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.rpc.RemoteObject#getDescriptor\n         */\n        getInterfaceDescriptor(): string;\n        /**\n         * Queries an interface descriptor.\n         *\n         * @returns { string } Return the interface descriptor.\n         * @throws { BusinessError } 1900008 - The proxy or remote object is invalid.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        getDescriptor(): string;\n        /**\n         * Sets an entry for receiving requests.\n         * <p>This method is implemented by the remote service provider. You need to override this method with\n         * your own service logic when you are using IPC.\n         *\n         * @param { number } code - Indicates the service request code sent from the peer end.\n         * @param { MessageSequence } data - Indicates the {@link MessageSequence} object sent from the peer end.\n         * @param { MessageSequence } reply - Indicates the response message object sent from the remote service.\n         * The local service writes the response data to the {@link MessageSequence} object.\n         * @param { MessageOption } options - Indicates whether the operation is synchronous or asynchronous.\n         * @returns { boolean | Promise<boolean> }\n         * Return a simple boolean which is {@code true} if the operation succeeds;\n         * {{@code false} otherwise} when the function call is synchronous.\n         * Return a promise object with a boolean when the function call is asynchronous.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        onRemoteMessageRequest(code: number, data: MessageSequence, reply: MessageSequence, options: MessageOption): boolean | Promise<boolean>;\n        /**\n         * Sets an entry for receiving requests.\n         * <p>This method is implemented by the remote service provider. You need to override this method with\n         * your own service logic when you are using IPC.\n         *\n         * @param { number } code - Indicates the service request code sent from the peer end.\n         * @param { MessageParcel } data - Indicates the {@link MessageParcel} object sent from the peer end.\n         * @param { MessageParcel } reply - Indicates the response message object sent from the remote service.\n         * The local service writes the response data to the {@link MessageParcel} object.\n         * @param { MessageOption } options - Indicates whether the operation is synchronous or asynchronous.\n         * @returns { boolean } Return {@code true} if the operation succeeds; return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.rpc.RemoteObject#onRemoteMessageRequest\n         */\n        onRemoteRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): boolean;\n        /**\n         * Sends a request to the peer object.\n         * <p>If the peer object and {@code RemoteObject} are on the same device, the request is sent by the IPC driver.\n         * If they are on different devices, the request is sent by the socket driver.\n         *\n         * @param { number } code - Indicates the message code of the request.\n         * @param { MessageParcel } data - Indicates the {@link MessageParcel} object storing the data to be sent.\n         * @param { MessageParcel } reply - Indicates the {@link MessageParcel} object receiving the response data.\n         * @param { MessageOption } options - Indicates a synchronous (default) or asynchronous request.\n         * @returns { boolean } Return {@code true} if the operation succeeds; return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 8\n         */\n        sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): boolean;\n        /**\n         * Sends a {@link MessageParcel} message to the peer process in synchronous or asynchronous mode.\n         * <p>If options indicates the asynchronous mode, a promise will be fulfilled immediately\n         * and the reply message does not contain any content. If options indicates the synchronous mode,\n         * a promise will be fulfilled when the response to sendRequest is returned,\n         * and the reply message contains the returned information.\n         *\n         * @param { number } code - Message code called by the request, which is determined by the client and server.\n         * If the method is generated by an IDL tool, the message code is automatically generated by the IDL tool.\n         * @param { MessageParcel } data - {@link MessageParcel} object holding the data to send.\n         * @param { MessageParcel } reply - {@link MessageParcel} object that receives the response.\n         * @param { MessageOption } options - Indicates the synchronous or asynchronous mode to send messages.\n         * @returns { Promise<SendRequestResult> } Promise used to return the {@link SendRequestResult} instance.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.rpc.RemoteObject#sendMessageRequest\n         */\n        sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): Promise<SendRequestResult>;\n        /**\n         * Sends a {@link MessageSequence} message to the peer process in synchronous or asynchronous mode.\n         * <p>If options indicates the asynchronous mode, a promise will be fulfilled immediately\n         * and the reply message does not contain any content. If options indicates the synchronous mode,\n         * a promise will be fulfilled when the response to sendMessageRequest is returned,\n         * and the reply message contains the returned information.\n         *\n         * @param { number } code - Message code called by the request, which is determined by the client and server.\n         * If the method is generated by an IDL tool, the message code is automatically generated by the IDL tool.\n         * @param { MessageSequence } data - {@link MessageSequence} object holding the data to send.\n         * @param { MessageSequence } reply - {@link MessageSequence} object that receives the response.\n         * @param { MessageOption } options - Indicates the synchronous or asynchronous mode to send messages.\n         * @returns { Promise<RequestResult> } Promise used to return the {@link RequestResult} instance.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match;\n         *     3.Failed to obtain the passed object instance.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        sendMessageRequest(code: number, data: MessageSequence, reply: MessageSequence, options: MessageOption): Promise<RequestResult>;\n        /**\n         * Sends a {@link MessageParcel} message to the peer process in synchronous or asynchronous mode.\n         * <p>If options indicates the asynchronous mode, a callback will be invoked immediately\n         * and the reply message does not contain any content. If options indicates the synchronous mode,\n         * a callback will be invoked when the response to sendRequest is returned,\n         * and the reply message contains the returned information.\n         *\n         * @param { number } code - Message code called by the request, which is determined by the client and server.\n         * If the method is generated by an IDL tool, the message code is automatically generated by the IDL tool.\n         * @param { MessageParcel } data - {@link MessageParcel} object holding the data to send.\n         * @param { MessageParcel} reply - {@link MessageParcel} object that receives the response.\n         * @param { MessageOption } options - Indicates the synchronous or asynchronous mode to send messages.\n         * @param { AsyncCallback<SendRequestResult> } callback - Callback for receiving the sending result.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.rpc.RemoteObject#sendMessageRequest\n         */\n        sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption, callback: AsyncCallback<SendRequestResult>): void;\n        /**\n         * Sends a {@link MessageSequence} message to the peer process in synchronous or asynchronous mode.\n         * <p>If options indicates the asynchronous mode, a callback will be invoked immediately\n         * and the reply message does not contain any content. If options indicates the synchronous mode,\n         * a callback will be invoked when the response to sendMessageRequest is returned,\n         * and the reply message contains the returned information.\n         *\n         * @param { number } code - Message code called by the request, which is determined by the client and server.\n         * If the method is generated by an IDL tool, the message code is automatically generated by the IDL tool.\n         * @param { MessageSequence } data - {@link MessageSequence} object holding the data to send.\n         * @param { MessageSequence } reply - {@link MessageSequence} object that receives the response.\n         * @param { MessageOption } options - Indicates the synchronous or asynchronous mode to send messages.\n         * @param { AsyncCallback<RequestResult> } callback - Callback for receiving the sending result.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match;\n         *     3.Failed to obtain the passed object instance.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        sendMessageRequest(code: number, data: MessageSequence, reply: MessageSequence, options: MessageOption, callback: AsyncCallback<RequestResult>): void;\n        /**\n         * Obtains the PID of the {@link RemoteProxy} object.\n         *\n         * @returns { number } Return the PID of the {@link RemoteProxy} object.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         */\n        getCallingPid(): number;\n        /**\n         * Obtains the UID of the {@link RemoteProxy} object.\n         *\n         * @returns { number } Return the UID of the {@link RemoteProxy} object.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         */\n        getCallingUid(): number;\n        /**\n         * Modifies the description of the current {@code RemoteObject}.\n         * <p>This method is used to change the default descriptor specified during the creation of {@code RemoteObject}.\n         *\n         * @param { IRemoteBroker } localInterface - Indicates the {@code RemoteObject} whose descriptor is to be changed.\n         * @param { string } descriptor - Indicates the new descriptor of the {@code RemoteObject}.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.rpc.RemoteObject#modifyLocalInterface\n         */\n        attachLocalInterface(localInterface: IRemoteBroker, descriptor: string): void;\n        /**\n         * Modifies the description of the current {@code RemoteObject}.\n         * <p>This method is used to change the default descriptor specified during the creation of {@code RemoteObject}.\n         *\n         * @param { IRemoteBroker } localInterface - Indicates the {@code RemoteObject} whose descriptor is to be changed.\n         * @param { string } descriptor - Indicates the new descriptor of the {@code RemoteObject}.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match;\n         *     3.The string length exceeds 40960 bytes;\n         *     4.The number of bytes copied to the buffer is different from the length of the obtained string.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        modifyLocalInterface(localInterface: IRemoteBroker, descriptor: string): void;\n    }\n    /**\n     * @syscap SystemCapability.Communication.IPC.Core\n     * @since 7\n     */\n    /**\n     * Implement the IRemoteObject proxy object.\n     *\n     * @extends IRemoteObject\n     * @syscap SystemCapability.Communication.IPC.Core\n     * @since 11\n     */\n    class RemoteProxy extends IRemoteObject {\n        /**\n         * Indicates the message code for a Ping operation.\n         *\n         * @type { number }\n         * @default 1599098439\n         * @static\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         */\n        static PING_TRANSACTION: number;\n        /**\n         * Indicates the message code for a dump operation.\n         *\n         * @type { number }\n         * @default 1598311760\n         * @static\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         */\n        static DUMP_TRANSACTION: number;\n        /**\n         * Indicates the message code for a transmission.\n         *\n         * @type { number }\n         * @default 1598968902\n         * @static\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         */\n        static INTERFACE_TRANSACTION: number;\n        /**\n         * Indicates the minimum value of a valid message code.\n         * <p>This constant is used to check the validity of an operation.\n         *\n         * @type { number }\n         * @default 0x1\n         * @static\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         */\n        static MIN_TRANSACTION_ID: number;\n        /**\n         * Indicates the maximum value of a valid message code.\n         * <p>This constant is used to check the validity of an operation.\n         *\n         * @type { number }\n         * @default 0x00FFFFFF\n         * @static\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         */\n        static MAX_TRANSACTION_ID: number;\n        /**\n         * Queries a local interface with a specified descriptor.\n         *\n         * @param { string } interface - Indicates the descriptor of the interface to query.\n         * @returns { IRemoteBroker } Return null by default, indicating a proxy interface.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.rpc.RemoteProxy#getLocalInterface\n         */\n        queryLocalInterface(interface: string): IRemoteBroker;\n        /**\n         * Queries a local interface with a specified descriptor.\n         *\n         * @param { string } interface - Indicates the descriptor of the interface to query.\n         * @returns { IRemoteBroker } Return null by default, indicating a proxy interface.\n         * @throws { BusinessError } 401 - check param failed\n         * @throws { BusinessError } 1900006 - Operation allowed only for the remote object.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        getLocalInterface(interface: string): IRemoteBroker;\n        /**\n         * Register a callback used to receive death notifications of a remote object.\n         *\n         * @param { DeathRecipient } recipient - Indicates the callback to be registered.\n         * @param { number } flags - Indicates the flag of the death notification. This is a reserved parameter.\n         *                   Set it to {@code 0}.\n         * @returns { boolean } Return {@code true} if the callback is registered successfully;\n         *                      return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.rpc.RemoteProxy#registerDeathRecipient\n         */\n        addDeathRecipient(recipient: DeathRecipient, flags: number): boolean;\n        /**\n         * Register a callback used to receive death notifications of a remote object.\n         *\n         * @param { DeathRecipient } recipient - Indicates the callback to be registered.\n         * @param { number } flags - Indicates the flag of the death notification. This is a reserved parameter.\n         *                   Set it to {@code 0}.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match;\n         *     3.The callback used to receive remote object death notifications is empty.\n         * @throws { BusinessError } 1900008 - The proxy or remote object is invalid.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        registerDeathRecipient(recipient: DeathRecipient, flags: number): void;\n        /**\n         * Unregister a callback used to receive death notifications of a remote object.\n         *\n         * @param { DeathRecipient } recipient - Indicates the callback to be unregister.\n         * @param { number } flags - Indicates the flag of the death notification. This is a reserved parameter.\n         *                   Set it to {@code 0}.\n         * @returns { boolean } Return {@code true} if the callback is unregister successfully;\n         *                      return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.rpc.RemoteProxy#unregisterDeathRecipient\n         */\n        removeDeathRecipient(recipient: DeathRecipient, flags: number): boolean;\n        /**\n         * Unregister a callback used to receive death notifications of a remote object.\n         *\n         * @param { DeathRecipient } recipient - Indicates the callback to be unregister.\n         * @param { number } flags - Indicates the flag of the death notification. This is a reserved parameter.\n         *                   Set it to {@code 0}.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match;\n         *     3.The callback used to receive remote object death notifications is empty.\n         * @throws { BusinessError } 1900008 - The proxy or remote object is invalid.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        unregisterDeathRecipient(recipient: DeathRecipient, flags: number): void;\n        /**\n         * Queries the interface descriptor of remote object.\n         *\n         * @returns { string } Return the interface descriptor.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.rpc.RemoteProxy#getDescriptor\n         */\n        getInterfaceDescriptor(): string;\n        /**\n         * Queries the interface descriptor of remote object.\n         *\n         * @returns { string } Return the interface descriptor.\n         * @throws { BusinessError } 1900007 - communication failed.\n         * @throws { BusinessError } 1900008 - The proxy or remote object is invalid.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        getDescriptor(): string;\n        /**\n         * Sends a request to the peer object.\n         * <p>If the peer object and {@code RemoteProxy} are on the same device, the request is sent by the IPC driver.\n         * If they are on different devices, the request is sent by the socket driver.\n         *\n         * @param { number } code - Indicates the message code of the request.\n         * @param { MessageParcel } data - Indicates the {@link MessageParcel} object storing the data to be sent.\n         * @param { MessageParcel } reply - Indicates the {@link MessageParcel} object receiving the response data.\n         * @param { MessageOption } options - Indicates a synchronous (default) or asynchronous request.\n         * @returns { boolean } Return {@code true} if the operation succeeds; return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 8\n         */\n        sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): boolean;\n        /**\n         * Sends a {@link MessageParcel} message to the peer process in synchronous or asynchronous mode.\n         * <p>If options indicates the asynchronous mode, a promise will be fulfilled immediately\n         * and the reply message does not contain any content. If options indicates the synchronous mode,\n         * a promise will be fulfilled when the response to sendRequest is returned,\n         * and the reply message contains the returned information.\n         *\n         * @param { number } code - Message code called by the request, which is determined by the client and server.\n         * If the method is generated by an IDL tool, the message code is automatically generated by the IDL tool.\n         * @param { MessageParcel } data - {@link MessageParcel} object holding the data to send.\n         * @param { MessageParcel} reply - {@link MessageParcel} object that receives the response.\n         * @param { MessageOption } options - Indicates the synchronous or asynchronous mode to send messages.\n         * @returns { Promise<SendRequestResult> } Promise used to return the {@link sendRequestResult} instance.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.rpc.RemoteProxy#sendMessageRequest\n         */\n        sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): Promise<SendRequestResult>;\n        /**\n         * Sends a {@link MessageSequence} message to the peer process in synchronous or asynchronous mode.\n         * <p>If options indicates the asynchronous mode, a promise will be fulfilled immediately\n         * and the reply message does not contain any content. If options indicates the synchronous mode,\n         * a promise will be fulfilled when the response to sendMessageRequest is returned,\n         * and the reply message contains the returned information.\n         *\n         * @param { number } code - Message code called by the request, which is determined by the client and server.\n         * If the method is generated by an IDL tool, the message code is automatically generated by the IDL tool.\n         * @param { MessageSequence } data - {@link MessageSequence} object holding the data to send.\n         * @param { MessageSequence } reply - {@link MessageSequence} object that receives the response.\n         * @param { MessageOption } options - Indicates the synchronous or asynchronous mode to send messages.\n         * @returns { Promise<RequestResult> } Promise used to return the {@link RequestResult} instance.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match;\n         *     3.Failed to obtain the passed object instance.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        sendMessageRequest(code: number, data: MessageSequence, reply: MessageSequence, options: MessageOption): Promise<RequestResult>;\n        /**\n         * Sends a {@link MessageParcel} message to the peer process in synchronous or asynchronous mode.\n         * <p>If options indicates the asynchronous mode, a callback will be invoked immediately\n         * and the reply message does not contain any content. If options indicates the synchronous mode,\n         * a callback will be invoked when the response to sendRequest is returned,\n         * and the reply message contains the returned information.\n         *\n         * @param { number } code - Message code called by the request, which is determined by the client and server.\n         * If the method is generated by an IDL tool, the message code is automatically generated by the IDL tool.\n         * @param { MessageParcel } data - {@link MessageParcel} object holding the data to send.\n         * @param { MessageParcel } reply - {@link MessageParcel} object that receives the response.\n         * @param { MessageOption } options - Indicates the synchronous or asynchronous mode to send messages.\n         * @param { AsyncCallback<SendRequestResult> } callback - Callback for receiving the sending result.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.rpc.RemoteProxy#sendMessageRequest\n         */\n        sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption, callback: AsyncCallback<SendRequestResult>): void;\n        /**\n         * Sends a {@link MessageSequence} message to the peer process in synchronous or asynchronous mode.\n         * <p>If options indicates the asynchronous mode, a callback will be invoked immediately\n         * and the reply message does not contain any content. If options indicates the synchronous mode,\n         * a callback will be invoked when the response to sendRequest is returned,\n         * and the reply message contains the returned information.\n         *\n         * @param { number } code - Message code called by the request, which is determined by the client and server.\n         * If the method is generated by an IDL tool, the message code is automatically generated by the IDL tool.\n         * @param { MessageSequence } data - {@link MessageSequence} object holding the data to send.\n         * @param { MessageSequence } reply - {@link MessageSequence} object that receives the response.\n         * @param { MessageOption } options - Indicates the synchronous or asynchronous mode to send messages.\n         * @param { AsyncCallback<RequestResult> } callback - Callback for receiving the sending result.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match;\n         *     3.Failed to obtain the passed object instance.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        sendMessageRequest(code: number, data: MessageSequence, reply: MessageSequence, options: MessageOption, callback: AsyncCallback<RequestResult>): void;\n        /**\n         * Checks whether the {@code RemoteObject} corresponding to a {@code RemoteProxy} is dead.\n         *\n         * @returns { boolean } Return {@code true} if the {@code RemoteObject} is dead; return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         */\n        isObjectDead(): boolean;\n    }\n    /**\n     * @syscap SystemCapability.Communication.IPC.Core\n     * @since 7\n     */\n    /**\n     * Used to obtain IPC context information, including obtaining the UID and PID, obtaining the local and\n     * peer device IDs, and checking whether the API call is on the same device.\n     *\n     * @syscap SystemCapability.Communication.IPC.Core\n     * @since 11\n     */\n    class IPCSkeleton {\n        /**\n         * Obtains a local {@link IRemoteObject} reference of a registered service.\n         * <p>This method is static.\n         *\n         * @returns { IRemoteObject } Return an {@link IRemoteObject} reference of the registered service.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         */\n        static getContextObject(): IRemoteObject;\n        /**\n         * Obtains the PID of a proxy.\n         * <p>This method is static. The PID is a positive integer during the communication between\n         * the {@link RemoteProxy} object and {@link RemoteObject} object, and resumes to {@code 0}\n         * when the communication ends. If this method is called from the {@link RemoteProxy} object,\n         * {@code 0} is returned; if this method is called from the {@link RemoteObject} object,\n         * the PID of the corresponding {@link RemoteProxy} object is returned.\n         *\n         * @returns { number } Return the PID of the proxy.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         */\n        static getCallingPid(): number;\n        /**\n         * Obtains the UID of a proxy.\n         * <p>This method is static. The UID is a positive integer during the communication between\n         * the {@link RemoteProxy} object and {@link RemoteObject} object, and resumes to {@code 0}\n         * when the communication ends. If this method is called from the {@link RemoteProxy} object,\n         * {@code 0} is returned; if this method is called from the {@link RemoteObject} object,\n         * the UID of the corresponding {@link RemoteProxy} object is returned.\n         *\n         * @returns { number } Return the UID of the proxy.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         */\n        static getCallingUid(): number;\n        /**\n         * Obtains the TOKENID.\n         * <p>This method is static.\n         *\n         * @returns { number } Return the TOKENID.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         */\n        static getCallingTokenId(): number;\n        /**\n         * Obtains the ID of the device where the peer process resides.\n         * <p>This method is static.\n         *\n         * @returns { string } Return the ID of the device where the peer process resides.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         */\n        static getCallingDeviceID(): string;\n        /**\n         * Obtains the ID of the local device.\n         * <p>This method is static.\n         *\n         * @returns { string } Return the ID of the local device.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         */\n        static getLocalDeviceID(): string;\n        /**\n         * Checks whether a call is made on the same device.\n         * <p>This method is static.\n         *\n         * @returns { boolean } Return {@code true} if the call is made on the same device; return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         */\n        static isLocalCalling(): boolean;\n        /**\n         * Flush all pending commands from a specified {@link RemoteProxy} to the corresponding {@link RemoteObject}.\n         * <p>This method is static. You are advised to call this method before performing any time-sensitive operations.\n         *\n         * @param { IRemoteObject } object - Indicates the specified {@link RemoteProxy}.\n         * @returns { number } Return {@code 0} if the operation succeeds; return an error code if the input object\n         *                     is empty or {@link RemoteObject}, or the operation fails.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.rpc.IPCSkeleton#flushCmdBuffer\n         */\n        static flushCommands(object: IRemoteObject): number;\n        /**\n         * Flush all pending commands from a specified {@link RemoteProxy} to the corresponding {@link RemoteObject}.\n         * <p>This method is static. You are advised to call this method before performing any time-sensitive operations.\n         *\n         * @param { IRemoteObject } object - Indicates the specified {@link RemoteProxy}.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        static flushCmdBuffer(object: IRemoteObject): void;\n        /**\n         * Replaces the UID and PID of the remote user with those of the local user.\n         * <p>This method is static. It can be used in scenarios like authentication.\n         *\n         * @returns { string } Return a string containing the UID and PID of the remote user.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         */\n        static resetCallingIdentity(): string;\n        /**\n         * Restore the UID and PID to those of the remote user.\n         * <p>This method is static. It is usually called after {@code resetCallingIdentity} is used\n         * and requires the UID and PID of the remote user returned by {@code resetCallingIdentity}.\n         *\n         * @param { string } identity - Indicates the string containing the UID and PID of the remote user,\n         *                   which is returned by {@code resetCallingIdentity}.\n         * @returns { boolean } Return {@code true} if the operation succeeds; return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.rpc.IPCSkeleton#restoreCallingIdentity\n         */\n        static setCallingIdentity(identity: string): boolean;\n        /**\n         * Restore the UID and PID to those of the remote user.\n         * <p>This method is static. It is usually called after {@code resetCallingIdentity} is used\n         * and requires the UID and PID of the remote user returned by {@code resetCallingIdentity}.\n         *\n         * @param { string } identity - Indicates the string containing the UID and PID of the remote user,\n         *                   which is returned by {@code resetCallingIdentity}.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match;\n         *     3.The string length exceeds 40960 bytes;\n         *     4.The number of bytes copied to the buffer is different from the length of the obtained string.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        static restoreCallingIdentity(identity: string): void;\n    }\n    /**\n     * Provides methods related to anonymous shared memory objects,\n     * including creating, closing, mapping, and unmapping an Ashmem object,\n     * reading data from and writing data to an Ashmem object,\n     * obtaining the Ashmem size, and setting Ashmem protection.\n     *\n     * @syscap SystemCapability.Communication.IPC.Core\n     * @since 8\n     */\n    class Ashmem {\n        /**\n         * The mapped memory is executable.\n         *\n         * @type { number }\n         * @default 4\n         * @static\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         */\n        static PROT_EXEC: number;\n        /**\n         * The mapped memory is inaccessible.\n         *\n         * @type { number }\n         * @default 0\n         * @static\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         */\n        static PROT_NONE: number;\n        /**\n         * The mapped memory is readable.\n         *\n         * @type { number }\n         * @default 1\n         * @static\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         */\n        static PROT_READ: number;\n        /**\n         * The mapped memory is writable.\n         *\n         * @type { number }\n         * @default 2\n         * @static\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         */\n        static PROT_WRITE: number;\n        /**\n         * Creates an Ashmem object with the specified name and size.\n         *\n         * @param { string } name - Name of the Ashmem object to create.\n         * @param { number } size - Size (in bytes) of the Ashmem object to create.\n         * @returns { Ashmem } Return the Ashmem object if it is created successfully; return null otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.rpc.Ashmem#create\n         */\n        static createAshmem(name: string, size: number): Ashmem;\n        /**\n         * Creates an Ashmem object with the specified name and size.\n         *\n         * @param { string } name - Name of the Ashmem object to create.\n         * @param { number } size - Size (in bytes) of the Ashmem object to create.\n         * @returns { Ashmem } Return the Ashmem object if it is created successfully; return null otherwise.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match;\n         *     3.The Ashmem name passed is empty;\n         *     4.The Ashmem size passed is less than or equal to 0.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        static create(name: string, size: number): Ashmem;\n        /**\n         * Creates an Ashmem object by copying the file descriptor (FD) of an existing Ashmem object.\n         * The two Ashmem objects point to the same shared memory region.\n         *\n         * @param { Ashmem } ashmem - Existing Ashmem object.\n         * @returns { Ashmem } Ashmem object created.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.rpc.Ashmem#create\n         */\n        static createAshmemFromExisting(ashmem: Ashmem): Ashmem;\n        /**\n         * Creates an Ashmem object by copying the file descriptor (FD) of an existing Ashmem object.\n         * The two Ashmem objects point to the same shared memory region.\n         *\n         * @param { Ashmem } ashmem - Existing Ashmem object.\n         * @returns { Ashmem } Ashmem object created.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The passed parameter is not an Ahmem object;\n         *     3.The ashmem instance for obtaining packaging is empty.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        static create(ashmem: Ashmem): Ashmem;\n        /**\n         * Closes this Ashmem object.\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         */\n        closeAshmem(): void;\n        /**\n         * Deletes the mappings for the specified address range of this Ashmem object.\n         *\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         */\n        unmapAshmem(): void;\n        /**\n         * Obtains the mapped memory size of this Ashmem object.\n         *\n         * @returns { number } Memory size mapped.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         */\n        getAshmemSize(): number;\n        /**\n         * Creates the shared file mapping on the virtual address space of this process.\n         * The size of the mapping region is specified by this Ashmem object.\n         *\n         * @param { number } mapType - Protection level of the memory region to which the shared file is mapped.\n         * @returns { boolean } Return {@code true} if the operation is successful; return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.rpc.Ashmem#mapTypedAshmem\n         */\n        mapAshmem(mapType: number): boolean;\n        /**\n         * Creates the shared file mapping on the virtual address space of this process.\n         * The size of the mapping region is specified by this Ashmem object.\n         *\n         * @param { number } mapType - Protection level of the memory region to which the shared file is mapped.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match;\n         *     3.The passed mapType exceeds the maximum protection level.\n         * @throws { BusinessError } 1900001 - Failed to call mmap.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        mapTypedAshmem(mapType: number): void;\n        /**\n         * Maps the shared file to the readable and writable virtual address space of the process.\n         *\n         * @returns { boolean } Return {@code true} if the operation is successful; return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.rpc.Ashmem#mapReadWriteAshmem\n         */\n        mapReadAndWriteAshmem(): boolean;\n        /**\n         * Maps the shared file to the readable and writable virtual address space of the process.\n         *\n         * @throws { BusinessError } 1900001 - Failed to call mmap.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        mapReadWriteAshmem(): void;\n        /**\n         * Maps the shared file to the read-only virtual address space of the process.\n         *\n         * @returns { boolean } Return {@code true} if the operation is successful; return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.rpc.Ashmem#mapReadonlyAshmem\n         */\n        mapReadOnlyAshmem(): boolean;\n        /**\n         * Maps the shared file to the read-only virtual address space of the process.\n         *\n         * @throws { BusinessError } 1900001 - Failed to call mmap.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        mapReadonlyAshmem(): void;\n        /**\n         * Sets the protection level of the memory region to which the shared file is mapped.\n         *\n         * @param { number } protectionType - Protection type to set.\n         * @returns { boolean } Return true if the operation is successful; return false otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.rpc.Ashmem#setProtectionType\n         */\n        setProtection(protectionType: number): boolean;\n        /**\n         * Sets the protection level of the memory region to which the shared file is mapped.\n         *\n         * @param { number } protectionType - Protection type to set.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match.\n         * @throws { BusinessError } 1900002 - Failed to call ioctl.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         */\n        setProtectionType(protectionType: number): void;\n        /**\n         * Writes data to the shared file associated with this Ashmem object.\n         *\n         * @param { number[] } buf - Data to write.\n         * @param { number } size - Size of the data to write.\n         * @param { number } offset - Start position of the data to write in the memory region associated\n         *                   with this Ashmem object.\n         * @returns { boolean } Return {@code true} is the data is written successfully; return {@code false} otherwise.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.rpc.Ashmem#writeAshmem\n         */\n        writeToAshmem(buf: number[], size: number, offset: number): boolean;\n        /**\n         * Writes data to the shared file associated with this Ashmem object.\n         *\n         * @param { number[] } buf - Data to write\n         * @param { number } size - Size of the data to write\n         * @param { number } offset - Start position of the data to write in the memory region associated\n         *                   with this Ashmem object.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match;\n         *     3.The element does not exist in the array.\n         * @throws { BusinessError } 1900003 - Failed to write data to the shared memory.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.rpc.Ashmem#writeDataToAshmem\n         */\n        writeAshmem(buf: number[], size: number, offset: number): void;\n        /**\n         * Writes data to the shared file associated with this Ashmem object.\n         *\n         * @param { ArrayBuffer } buf - Data to write\n         * @param { number } size - Size of the data to write\n         * @param { number } offset - Start position of the data to write in the memory region associated\n         *                   with this Ashmem object.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match;\n         *     3.Failed to obtain arrayBuffer information.\n         * @throws { BusinessError } 1900003 - Failed to write data to the shared memory.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 11\n         */\n        writeDataToAshmem(buf: ArrayBuffer, size: number, offset: number): void;\n        /**\n         * Reads data from the shared file associated with this Ashmem object.\n         *\n         * @param { number } size - Size of the data to read.\n         * @param { number } offset - Start position of the data to read in the memory region associated\n         *                   with this Ashmem object.\n         * @returns { number[] } Data read.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.rpc.Ashmem#readAshmem\n         */\n        readFromAshmem(size: number, offset: number): number[];\n        /**\n         * Reads data from the shared file associated with this Ashmem object.\n         *\n         * @param { number } size - Size of the data to read.\n         * @param { number } offset - Start position of the data to read in the memory region associated\n         *                   with this Ashmem object.\n         * @returns { number[] } Data read.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match.\n         * @throws { BusinessError } 1900004 - Failed to read data from the shared memory.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.rpc.Ashmem#readDataFromAshmem\n         */\n        readAshmem(size: number, offset: number): number[];\n        /**\n         * Reads data from the shared file associated with this Ashmem object.\n         *\n         * @param { number } size - Size of the data to read.\n         * @param { number } offset - Start position of the data to read in the memory region associated\n         *                   with this Ashmem object.\n         * @returns { ArrayBuffer } Data read.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         *     1.The number of parameters is incorrect;\n         *     2.The parameter type does not match.\n         * @throws { BusinessError } 1900004 - Failed to read data from the shared memory.\n         * @syscap SystemCapability.Communication.IPC.Core\n         * @since 11\n         */\n        readDataFromAshmem(size: number, offset: number): ArrayBuffer;\n    }\n}\nexport default rpc;\n",
}
export default FILE;